package {
	import flash.display.MovieClip;
	import flash.events.MouseEvent;	

	/**
	 * @author Niels
	 */
	public class Avatar extends MovieClip {
		public var head:Head;
		public var body:MovieClip;
		public function Avatar() {
			this.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
			this.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut);
		}
		
		private function onMouseOut(event:MouseEvent):void {
			this.head.shrink();
		}

		private function onMouseOver(event:MouseEvent):void {
			this.head.grow();
		}
	}
}
